//import vconsole from './plugins/vconsole.min'
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from '../../router/router'
import store from '../../store/'

import App from '../../components/App.vue'

import Api from '../lib/Api'
import setTitle from '../lib/title'
import '../lib/rem'

Vue.use(VueRouter)
const router = new VueRouter({
//	mode: 'history',
	routes
})


router.afterEach((to, from, next) => {
//	console.log(to,from,next)
  let title = to.meta.title
  setTitle(title)
})


new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  render: h => h(App),
//components: { App },
})

